﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using COM.OA.BLL;
using COM.OA.Entity;
using System.Collections.Generic;

public partial class wc_zcgl_zcsc : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        users loginuser = Session["loginuser"] as users;

        if (loginuser == null)
        {
            this.Response.Write(string.Format(GetRedirect.REDIRECT, "../login.aspx"));
        }
        else
        {
            int upid = Int32.Parse(this.Request["id"]);
            int i = assetmanageBLL.Delete(upid);
            if (i < 0)
            {
                this.Response.Write(string.Format(GetRedirect.REDIRECT, "zcgl.aspx"));
            }
            else
            {
                this.Response.Write(string.Format(GetRedirect.WINALERT, "删除失败!"));
                this.Response.Write(string.Format(GetRedirect.REDIRECT, "zcgl.aspx"));
            }
        }


    }
}
